<script type="text/javascript">
	function calAfterOut(value) {
		printLog($('#currentBalance').numberbox('getValue'));
// 		printLog($('#inBalance').numberbox('getValue'));
		var afterOutBalance = Number($('#currentBalance').numberbox('getValue'))- Number(value);
// 		$('#afterInBalance').val(afterInBalance.toFixed(6));
		$('#afterOutBalance').numberbox('setValue', afterOutBalance.toFixed(2));
	}
</script>
<table cellpadding="5">
	<input name="accountId" type="hidden" value="${(transAccountItem.id)!}" />
	<input name="websiteId" type="hidden" value="${(transAccountItem.websiteId)!}" />
	<tr>
		<td class="tbLabel">所属网点:</td>
		<td>
			<input class="easyui-validatebox textbox" readonly="readonly" data-options="required: true" value="${(transAccountItem.websiteName)!}"/>
		</td>
		<td class="tbLabel">当前余额:</td>
		<td>
			<input id="currentBalance" name="currentBalance" readonly="readonly"  class="easyui-numberbox" precision="2" data-options="required: true,width:157" value="${(transAccountItem.accountBalance)!'0'}"/>
		</td>
	</tr>
	<tr>
		<td>提取日期:</td>
		<td>
			<input name="tradeDate" style="width:160px;" class="easyui-datetimebox" data-options="required: true" />
		</td>
		<td>提取金额:</td>
		<td>
			<input id="outBalance" name="tradeBalance"  class="easyui-numberbox"  precision="2" data-options="required: true,width:157,onChange:function(newValue,oldValue) {calAfterOut(newValue);}" />
		</td>
	</tr>
	<tr>
		<td>经办人:</td>
		<td>
			<input name="operator"  class="easyui-validatebox textbox" readonly="readonly" data-options="required: true" value="${(user.name)!}"/>
		</td>
		<td>提取后金额:</td>
		<td>
			<input id="afterOutBalance" name="afterOperateBalance"  readonly="readonly" class="easyui-numberbox"  precision="2" data-options="width:157" />
		</td>
	</tr>
	<tr>
		<td>备注:</td>
		<td colspan="3">
			<textarea style="height: 90px;width: 418px;" rows="6"  name="remark" class="easyui-validatebox textbox"></textarea>
		</td>
	</tr>
</table>
